#include <stdio.h>
#include "test.h"

int ok    = 0;
int total = 0;

void test_start(char *s)
{
  printf("[%2d] %s:", total++, s);
}

void test_failed(char *s)
{
  printf(" failed\n");
  printf("\t%s\n\n", s);
}

void test_ok(void)
{
  ok++;
  printf(" ok\n");
}

void test_stats(int *a, int *b)
{
  *a = ok;
  *b = total;
}
